<?php

class Communitas_Integrate_Block_Template extends Mage_Core_Block_Template
{
	
	public function __construct(){
		$force_curl = $this->getRequest()->getParam('force_curl', NULL);
		if( !is_null($force_curl) ){
			if( is_string($force_curl) && !empty($force_curl) ){
				Mage::getDesign()->setTheme( $force_curl );
			} else {
				Mage::getDesign()->setTheme('curl');
			}
		}
		
		parent::__construct();
	}
	
	/*
	public function fetchView($fileName)
    {
        $force_curl = $this->getRequest()->getParam('force_curl', NULL);
		if( !is_null($force_curl) ){
			//Varien_Profiler::start($fileName);
			//extract ($this->_viewVars);
			
			//ob_start();
			include $this->_viewDir.DS.$fileName;
			$html = ob_get_clean();
			return;

			//Varien_Profiler::stop($fileName);
			return basename($fileName);
		} else {
			//return parent::fetchView($fileName);
		}
    }
	*/
}